import moment from 'moment';
import {guid} from '@/utils/CommonUtils';

export const DefaultFlowModel = {
  id: guid(),
  start: "start",
  end: "end",
  nodes: [],
  lines: [
    {
      start: 'start',
      end: 'end'
    }
  ],
  gatewayPairs: []
};

export const DefaultFlowDefinition = {
  key: undefined,
  id: undefined,
  processKey: undefined,
  name: '新建流程',
  flowDefinition: JSON.stringify(DefaultFlowModel),
  titleFormula: {
    id: null,
    formulaText: null,
    formulaTitle: null,
    formulaRefs: null,
  },
  formId: undefined,
  pcViewId: undefined,
  pcViewActionId: undefined,
  mobileViewId: undefined,
  mobileViewActionId: undefined,
  createTime: moment().format('YYYY-MM-DD HH:mm:ss')
};

